package cn.wolfcode.dubbo.user.service.impl;

import cn.wolfcode.dubbo.User.domain.User;
import cn.wolfcode.dubbo.User.service.IUserService;
import cn.wolfcode.dubbo.user.userdata.UserData;
import org.apache.dubbo.config.annotation.Service;
//生产者在生产服务的时候指定该服务的版本号
@Service(version = "1.0")
public class UserServiceImpl implements IUserService {

    @Override
    public User get(Long id) {
        User user = UserData.get(id);
        return user;
    }
}
